package Vista;
import javax.swing.BorderFactory;
import javax.swing.ComboBoxModel;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JButton;
import javax.swing.JComboBox;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.JTextField;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.TableModel;

import controlador.ControladorOrden;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class NewJDialogOrden extends javax.swing.JDialog {
	private JPanel jPanelRegistrarOrden;
	public JPanel getjPanelRegistrarOrden() {
		return jPanelRegistrarOrden;
	}

	public JLabel getjLblCodigoCliente() {
		return jLblCodigoCliente;
	}

	public JLabel getjLblCategoria() {
		return jLblCategoria;
	}

	public JButton getjBtoQuitarProducto() {
		return jBtoQuitarProducto;
	}

	public JButton getjBtoAgregarProducto() {
		return jBtoAgregarProducto;
	}

	public JLabel getJlblMontoTotal() {
		return jlblMontoTotal;
	}

	public JTextField getjTxtMontoTotal() {
		return jTxtMontoTotal;
	}

	public JButton getjBtoEliminar() {
		return jBtoEliminar;
	}

	public JButton getjBtoRegistrar() {
		return jBtoRegistrar;
	}

	public JButton getjBtoSalir() {
		return jBtoSalir;
	}

	public JTable getjTbOrden() {
		return jTbOrden;
	}

	public JScrollPane getjSpOrden() {
		return jSpOrden;
	}

	public JComboBox getjCmbProducto() {
		return jCmbProducto;
	}

	public JComboBox getjCmbCategoria() {
		return jCmbCategoria;
	}

	public JLabel getjLblProducto() {
		return jLblProducto;
	}

	public JTextField getjTxtCodigoOrden() {
		return jTxtCodigoOrden;
	}

	public JTextField getjTxtCodigoCliente() {
		return jTxtCodigoCliente;
	}

	public JLabel getjLblCodigoOrden() {
		return jLblCodigoOrden;
	}

	private JLabel jLblCodigoCliente;
	private JLabel jLblCategoria;
	private JButton jBtoClienteOrden;
	private JButton JBtoOrdenBuscar;
	private JButton jBtoQuitarProducto;
	private JButton jBtoAgregarProducto;
	private JLabel jlblMontoTotal;
	private JTextField jTxtMontoTotal;
	private JButton jBtoEliminar;
	private JButton jBtoRegistrar;
	private JButton jBtoSalir;
	private JTable jTbOrden;
	private JScrollPane jSpOrden;
	private JComboBox jCmbProducto;
	private JComboBox jCmbCategoria;
	private JLabel jLblProducto;
	private JTextField jTxtCodigoOrden;
	private JTextField jTxtCodigoCliente;
	private JLabel jLblCodigoOrden;

	/**
	* Auto-generated main method to display this JDialog
	 * @param controladorOrden 
	*/
		
	public NewJDialogOrden(JFrame frame, ControladorOrden controladorOrden) {
		super(frame);
		initGUI();
	}
	
	private void initGUI() {
		try {
			{
				getContentPane().setLayout(null);
				this.setTitle("Registrar Orden");
				this.setFont(new java.awt.Font("Comic Sans MS",3,14));
				{
					jPanelRegistrarOrden = new JPanel();
					getContentPane().add(jPanelRegistrarOrden);
					//jPanelRegistrarOrden.setLayout(jPanelRegistrarOrdenLayout);
					jPanelRegistrarOrden.setBounds(12, 12, 660, 378);
					jPanelRegistrarOrden.setBorder(BorderFactory.createMatteBorder(1, 1, 1, 1, new java.awt.Color(0,0,0)));
					jPanelRegistrarOrden.setLayout(null);
					jPanelRegistrarOrden.setBackground(new java.awt.Color(237,206,69));
					{
						jLblCodigoCliente = new JLabel();
						jPanelRegistrarOrden.add(jLblCodigoCliente);
						jLblCodigoCliente.setText("Cedula Cliente");
						jLblCodigoCliente.setBounds(5, 24, 125, 19);
						jLblCodigoCliente.setFont(new java.awt.Font("Comic Sans MS",3,14));
					}
					{
						jLblCodigoOrden = new JLabel();
						jPanelRegistrarOrden.add(jLblCodigoOrden);
						jLblCodigoOrden.setText("Codigo Orden");
						jLblCodigoOrden.setBounds(344, 24, 125, 19);
						jLblCodigoOrden.setFont(new java.awt.Font("Comic Sans MS",3,14));
					}
					{
						jTxtCodigoCliente = new JTextField();
						jPanelRegistrarOrden.add(jTxtCodigoCliente);
						jTxtCodigoCliente.setBounds(142, 23, 68, 22);
						jTxtCodigoCliente.setFont(new java.awt.Font("Comic Sans MS",3,14));
					}
					{
						jTxtCodigoOrden = new JTextField();
						jPanelRegistrarOrden.add(jTxtCodigoOrden);
						jTxtCodigoOrden.setBounds(478, 23, 73, 22);
						jTxtCodigoOrden.setFont(new java.awt.Font("Comic Sans MS",3,14));
						jTxtCodigoOrden.setEnabled(false);
					}
					{
						jLblCategoria = new JLabel();
						jPanelRegistrarOrden.add(jLblCategoria);
						jLblCategoria.setText("Categoria");
						jLblCategoria.setBounds(5, 87, 100, 15);
						jLblCategoria.setFont(new java.awt.Font("Comic Sans MS",3,14));
					}
					{
						jLblProducto = new JLabel();
						jPanelRegistrarOrden.add(jLblProducto);
						jLblProducto.setText("Producto");
						jLblProducto.setBounds(332, 87, 99, 15);
						jLblProducto.setFont(new java.awt.Font("Comic Sans MS",3,14));
					}
					{
						ComboBoxModel jCmbCategoriaModel = 
							new DefaultComboBoxModel(
									new String[] { "Item One", "Item Two" });
						jCmbCategoria = new JComboBox();
						jPanelRegistrarOrden.add(jCmbCategoria);
						jCmbCategoria.setModel(jCmbCategoriaModel);
						jCmbCategoria.setBounds(116, 83, 166, 22);
						jCmbCategoria.setFont(new java.awt.Font("Comic Sans MS",3,14));
					}
					{
						ComboBoxModel jCmbProductoModel = 
							new DefaultComboBoxModel(
									new String[] { "Item One", "Item Two" });
						jCmbProducto = new JComboBox();
						jPanelRegistrarOrden.add(jCmbProducto);
						jCmbProducto.setModel(jCmbProductoModel);
						jCmbProducto.setBounds(436, 83, 185, 22);
						jCmbProducto.setFont(new java.awt.Font("Comic Sans MS",3,14));
					}
					{
						jSpOrden = new JScrollPane();
						jPanelRegistrarOrden.add(jSpOrden);
						jSpOrden.setBounds(35, 144, 568, 97);
						jSpOrden.setFont(new java.awt.Font("Comic Sans MS",3,14));
						{
							TableModel jTbOrdenModel = 
								new DefaultTableModel(
										new String[][] { { "One", "Two" }, { "Three", "Four" } },
										new String[] { "Column 1", "Column 2" });
							jTbOrden = new JTable();
							jSpOrden.setViewportView(jTbOrden);
							jTbOrden.setModel(jTbOrdenModel);
							jTbOrden.setFont(new java.awt.Font("Comic Sans MS",3,14));
						}
					}
					{
						jBtoSalir = new JButton();
						jPanelRegistrarOrden.add(jBtoSalir);
						jBtoSalir.setText("Salir");
						jBtoSalir.setBounds(537, 344, 97, 22);
						jBtoSalir.setFont(new java.awt.Font("Comic Sans MS",3,14));
					}
					{
						jBtoRegistrar = new JButton();
						jPanelRegistrarOrden.add(jBtoRegistrar);
						jBtoRegistrar.setText("Registrar");
						jBtoRegistrar.setBounds(27, 344, 165, 22);
						jBtoRegistrar.setFont(new java.awt.Font("Comic Sans MS",3,14));
						jBtoRegistrar.setEnabled(false);
					}
					{
						jBtoEliminar = new JButton();
						jPanelRegistrarOrden.add(jBtoEliminar);
						jBtoEliminar.setText("Eliminar");
						jBtoEliminar.setBounds(228, 344, 171, 22);
						jBtoEliminar.setFont(new java.awt.Font("Comic Sans MS",3,14));
						jBtoEliminar.setEnabled(false);
					}
					{
						jTxtMontoTotal = new JTextField();
						jPanelRegistrarOrden.add(jTxtMontoTotal);
						jTxtMontoTotal.setFont(new java.awt.Font("Comic Sans MS",3,14));
						jTxtMontoTotal.setBounds(495, 303, 104, 22);
						jTxtMontoTotal.setEnabled(false);
					}
					{
						jlblMontoTotal = new JLabel();
						jPanelRegistrarOrden.add(jlblMontoTotal);
						jlblMontoTotal.setText("Monto Total");
						jlblMontoTotal.setFont(new java.awt.Font("Comic Sans MS",3,14));
						jlblMontoTotal.setBounds(384, 304, 125, 19);
						jlblMontoTotal.setLayout(null);
					}
					{
						jBtoAgregarProducto = new JButton();
						jPanelRegistrarOrden.add(jBtoAgregarProducto);
						jBtoAgregarProducto.setText("Agregar Producto");
						jBtoAgregarProducto.setBounds(55, 259, 227, 22);
						jBtoAgregarProducto.setFont(new java.awt.Font("Comic Sans MS",3,14));
					}
					{
						jBtoQuitarProducto = new JButton();
						jPanelRegistrarOrden.add(jBtoQuitarProducto);
						jBtoQuitarProducto.setText("Quitar Producto");
						jBtoQuitarProducto.setBounds(317, 259, 260, 22);
						jBtoQuitarProducto.setFont(new java.awt.Font("Comic Sans MS",3,14));
					}
					{
						JBtoOrdenBuscar = new JButton();
						jPanelRegistrarOrden.add(JBtoOrdenBuscar);
						JBtoOrdenBuscar.setText("Buscar");
						JBtoOrdenBuscar.setBounds(557, 23, 91, 22);
						JBtoOrdenBuscar.setEnabled(false);
						JBtoOrdenBuscar.setFont(new java.awt.Font("Comic Sans MS",3,14));
					}
					{
						jBtoClienteOrden = new JButton();
						jPanelRegistrarOrden.add(jBtoClienteOrden);
						jBtoClienteOrden.setText("Buscar");
						jBtoClienteOrden.setBounds(216, 24, 101, 22);
						jBtoClienteOrden.setFont(new java.awt.Font("Comic Sans MS",3,14));
					}
				}
			}
			this.setSize(719, 437);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	public JButton getJBtoOrdenBuscar() {
		return JBtoOrdenBuscar;
	}

	public JButton getjBtoClienteOrden() {
		return jBtoClienteOrden;
	}

}
